albums.js ➔ ... ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
dl 0
loc 1
rs 10
nop 1
1
/* to run: babel-node albums.js */
2
3
global.fetch = require('node-fetch');
4
5
import SpotifyWrapper from '../src/index';
6
7
const spotify = new SpotifyWrapper({
8
  token: 'BQD6DeDxMyHeNTD5it-1_PNz9rWswGQjFDcxeNIsNknmkR882Z7CgE0GTB6oi1nSFU5RI4ZNxYVpJuJ_vVnJWGKKDvtxVsYUPUALk_8-Aoc5gcemWMOiqCdRHkkzXXhMJ-hTHDtzhcflrKM'
9
});
10
11
const albums = spotify.search.albums('Incubus');
12
13
albums.then(data => data.albums.items.map(item => console.log(item.name)));
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
14